package com.cn.reportforms.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ExportSettingQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ExportSettingQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andExcelNameIsNull() {
            addCriterion("excel_name is null");
            return (Criteria) this;
        }

        public Criteria andExcelNameIsNotNull() {
            addCriterion("excel_name is not null");
            return (Criteria) this;
        }

        public Criteria andExcelNameEqualTo(String value) {
            addCriterion("excel_name =", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameNotEqualTo(String value) {
            addCriterion("excel_name <>", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameGreaterThan(String value) {
            addCriterion("excel_name >", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameGreaterThanOrEqualTo(String value) {
            addCriterion("excel_name >=", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameLessThan(String value) {
            addCriterion("excel_name <", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameLessThanOrEqualTo(String value) {
            addCriterion("excel_name <=", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameLike(String value) {
            addCriterion("excel_name like", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameNotLike(String value) {
            addCriterion("excel_name not like", value, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameIn(List<String> values) {
            addCriterion("excel_name in", values, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameNotIn(List<String> values) {
            addCriterion("excel_name not in", values, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameBetween(String value1, String value2) {
            addCriterion("excel_name between", value1, value2, "excelName");
            return (Criteria) this;
        }

        public Criteria andExcelNameNotBetween(String value1, String value2) {
            addCriterion("excel_name not between", value1, value2, "excelName");
            return (Criteria) this;
        }

        public Criteria andColomnNamesIsNull() {
            addCriterion("colomn_names is null");
            return (Criteria) this;
        }

        public Criteria andColomnNamesIsNotNull() {
            addCriterion("colomn_names is not null");
            return (Criteria) this;
        }

        public Criteria andColomnNamesEqualTo(String value) {
            addCriterion("colomn_names =", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesNotEqualTo(String value) {
            addCriterion("colomn_names <>", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesGreaterThan(String value) {
            addCriterion("colomn_names >", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesGreaterThanOrEqualTo(String value) {
            addCriterion("colomn_names >=", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesLessThan(String value) {
            addCriterion("colomn_names <", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesLessThanOrEqualTo(String value) {
            addCriterion("colomn_names <=", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesLike(String value) {
            addCriterion("colomn_names like", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesNotLike(String value) {
            addCriterion("colomn_names not like", value, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesIn(List<String> values) {
            addCriterion("colomn_names in", values, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesNotIn(List<String> values) {
            addCriterion("colomn_names not in", values, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesBetween(String value1, String value2) {
            addCriterion("colomn_names between", value1, value2, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andColomnNamesNotBetween(String value1, String value2) {
            addCriterion("colomn_names not between", value1, value2, "colomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesIsNull() {
            addCriterion("excel_colomn_names is null");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesIsNotNull() {
            addCriterion("excel_colomn_names is not null");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesEqualTo(String value) {
            addCriterion("excel_colomn_names =", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesNotEqualTo(String value) {
            addCriterion("excel_colomn_names <>", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesGreaterThan(String value) {
            addCriterion("excel_colomn_names >", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesGreaterThanOrEqualTo(String value) {
            addCriterion("excel_colomn_names >=", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesLessThan(String value) {
            addCriterion("excel_colomn_names <", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesLessThanOrEqualTo(String value) {
            addCriterion("excel_colomn_names <=", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesLike(String value) {
            addCriterion("excel_colomn_names like", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesNotLike(String value) {
            addCriterion("excel_colomn_names not like", value, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesIn(List<String> values) {
            addCriterion("excel_colomn_names in", values, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesNotIn(List<String> values) {
            addCriterion("excel_colomn_names not in", values, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesBetween(String value1, String value2) {
            addCriterion("excel_colomn_names between", value1, value2, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andExcelColomnNamesNotBetween(String value1, String value2) {
            addCriterion("excel_colomn_names not between", value1, value2, "excelColomnNames");
            return (Criteria) this;
        }

        public Criteria andEnableIsNull() {
            addCriterion("enable is null");
            return (Criteria) this;
        }

        public Criteria andEnableIsNotNull() {
            addCriterion("enable is not null");
            return (Criteria) this;
        }

        public Criteria andEnableEqualTo(Boolean value) {
            addCriterion("enable =", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotEqualTo(Boolean value) {
            addCriterion("enable <>", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThan(Boolean value) {
            addCriterion("enable >", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("enable >=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThan(Boolean value) {
            addCriterion("enable <", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThanOrEqualTo(Boolean value) {
            addCriterion("enable <=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableIn(List<Boolean> values) {
            addCriterion("enable in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotIn(List<Boolean> values) {
            addCriterion("enable not in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableBetween(Boolean value1, Boolean value2) {
            addCriterion("enable between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("enable not between", value1, value2, "enable");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
